<?php

namespace App\Logic;

use App\Service\OtherInfoService;

class OtherInfoLogic
{
    protected OtherInfoService $service;

    public function __construct()
    {
        $this->service = new OtherInfoService();
    }

    /**
     * 其他信息列表
     * @param array $params
     * @return array
     */
    public function list(array $params): array
    {
        return $this->service->list($params);
    }

    /**
     * 新增其他信息
     * @param array $params
     * @return array
     */
    public function create(array $params): array
    {
        return $this->service->create($params);
    }

    /**
     * 软删除其他信息
     * @param int $id
     * @return void
     */
    public function delete(int $id): void
    {
        $this->service->delete($id);
    }
} 